vhanquez@kneesa.uk.xensource.com [Thu, 20 Apr 2006 16:09:53 +0000 (17:09 +0100)]
adjustement to default configs to build BLK_DEV_GENERIC in the kernel directly.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 20 Apr 2006 16:02:42 +0000 (17:02 +0100)]
SVM patch to ensure that PAE bit is set for 32bit guests on 32bit PAE,
by using paging levels>=3 rather than ifdef i386. This patch fixes
the "black screen" hang issue when building w/XEN_TARGET_X86_PAE=y on
32bit.
Tested linux debian and win2003EE guests with pae=1. The linux
guest boots without error, while the windows guest sometimes hits a
bug() in shadow.c. Both VT and SVM encounter the same bug.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
vhanquez@kneesa.uk.xensource.com [Thu, 20 Apr 2006 14:45:09 +0000 (15:45 +0100)]
Put back some modules directly in kernel.
ATA_PIIX, PACKET and SECURITY_CAPABILITY are not correctly load on certain
distributions.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 20 Apr 2006 13:10:35 +0000 (14:10 +0100)]
In both i386 and x86-64 Linux, using a static variable (and thus
having the potential of missing synchronization there,
as I suspect exists in native Linux) is not needed with the hypercall
approach. In the hypervisor, the patch adds the
needed synchronization.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 20 Apr 2006 09:38:07 +0000 (10:38 +0100)]
Build frontend drivers into the -xen kernels rather than as
modules. Most people's initrd-building tools will not know
about these drivers so it will only cause confusion not to
include them in the kernel core image.
Signed-off-by: Keir Fraser <keir@xensource.com>
vhanquez@kneesa.uk.xensource.com [Wed, 19 Apr 2006 22:16:58 +0000 (23:16 +0100)]
Update -xen configs for 32/64 bits to be closer to what distributions use.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
stekloff@dyn9047022152.beaverton.ibm.com [Wed, 19 Apr 2006 21:58:24 +0000 (22:58 +0100)]
Add small memory warning message to domain configuration examples.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
stekloff@dyn9047022152.beaverton.ibm.com [Wed, 19 Apr 2006 21:58:16 +0000 (22:58 +0100)]
Small Memory fix patch #2: I forgot to change the XmTestDomain method
minSafeMem from 16 to 32.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
stekloff@dyn9047022152.beaverton.ibm.com [Wed, 19 Apr 2006 21:58:03 +0000 (22:58 +0100)]
Fix the 15_create_smallmem_pos.py test, which was failing because the
set console.limit command in the test was never being run. The select in
Console.py was never timing out because there was always someting to read on
the fd, the OOM messages are constant. So the test would hang.
The fix includes:
1) Changing MEM in 15_create_smallmem_pos.py to 32MBs, which is the default
for the tools that should work.
2) Change the XmConsole init to add an argument to set the console limit
when it's created.
3) Set a default large limit for console so we won't hang in the future.
4) Added a new 16_create_smallmem_neg.py test to handle failure situation.
5) Added comment in README.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
emellor@leeni.uk.xensource.com [Wed, 19 Apr 2006 21:54:49 +0000 (22:54 +0100)]
Under FC5 multi-line commands in bash script language have to be wrapped
in $(...) instead of '`...`', otherwise the parser seems to get
confused.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
emellor@leeni.uk.xensource.com [Wed, 19 Apr 2006 21:52:34 +0000 (22:52 +0100)]
This fixes a path problem with the current ACM scripts.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 19 Apr 2006 21:28:22 +0000 (22:28 +0100)]
x86/64 e820-parse-and-map code should skip low 1GB now as that
is mapped by the boot code.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 19 Apr 2006 21:23:44 +0000 (22:23 +0100)]
Increase size of level-2 initial PDE identity map from first 64MB of
physical RAM to first 1GB of physical RAM. This allows x86_64 xen to boot
larger dom0 images. Without this changes large dom0 images fail to
boot with "Unknown interrupt" on xen console and wedge.
Signed-off-by: Todd Clayton <todd.clayton@sun.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 19 Apr 2006 21:23:30 +0000 (22:23 +0100)]
Fix 64-bit Xen build after new PIT (i8254) code.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 19 Apr 2006 21:19:41 +0000 (22:19 +0100)]
The Xen Hypervisor currently operates a bit differently when the
guest is being debugged. The differences are handling of int3 exception
and missed pit timer injections. The Xen hypervisor should get back to
the normal mode when the gdb connection is closed. With the attached
patch gdbserver properly detaches from the guest when the gdb detaches
or quits.
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 19 Apr 2006 17:43:39 +0000 (18:43 +0100)]
Clean up the xenoprofile hypercall interface.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 19 Apr 2006 17:39:36 +0000 (18:39 +0100)]
Fix swapped calloc() arguments.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 19 Apr 2006 17:38:14 +0000 (18:38 +0100)]
Sync PIT device model with latest qemu and move it to hypervisor.
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 19 Apr 2006 17:32:20 +0000 (18:32 +0100)]
Replace &foo[0] with foo where the latter seems cleaner
(which is usually, and particularly when its an argument
to one of the bitops functions).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 19 Apr 2006 17:24:49 +0000 (18:24 +0100)]
This patch defines a test_and_clear bitop for cpumask_t pointers.
Also fixes "wrong pointer type" for type specific bitops by using
&foo[0] instead of &foo.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
emellor@leeni.uk.xensource.com [Wed, 19 Apr 2006 15:08:41 +0000 (16:08 +0100)]
This is an update on the vTPM installation instructions.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 16 Apr 2006 14:41:31 +0000 (15:41 +0100)]
Only BSP can really do clear_all_shadow_status.
This fixes SMP IA32 VMX guest booting on IA32 xen.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 16 Apr 2006 14:04:21 +0000 (15:04 +0100)]
Clean up new EOI ack method some more and fix unbinding
IRQ from guest (penidng EOIs must be forcibly flushed).
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Sat, 15 Apr 2006 18:25:21 +0000 (19:25 +0100)]
Merged.
emellor@leeni.uk.xensource.com [Sat, 15 Apr 2006 18:25:09 +0000 (19:25 +0100)]
Read the message type out of the message before sending it to xenstored, and
use that saved value when handling the reply. Xenstored will leave the
message type intact, _except_ when returning an error, in which case it will
change the type to XS_ERROR. This meant that we failed to remove a
transaction from our internal list if xenstored returned EAGAIN, as we did not
realise that the message was XS_TRANSACTION_END. This manifested itself as
the intended behaviour until the connection was closed, at which point all of
those failed transactions would erroneously be aborted.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 17:09:52 +0000 (18:09 +0100)]
Big fixes for the new IO-APIC acknowledging method. The problems
were:
1. Some critical Xen interrupts could get blocked behind
unacknowledged guest interrupts. This is avoided by making
all Xen-bound interrrupts strictly higher priority.
2. Interrupts must not only be EOIed on the CPU that received
them, but also in reverse order when interrupts are nested.
A whole load of logic has been added to ensure this.
There are two boot parameters relating to all this:
'ioapic_ack=old' -- use the old IO-APIC ACK method
'ioapic_ack=new' -- use the new IO-APIC ACK method (default)
'force_intack' -- periodically force acknowledgement of
interrupts (default is no; useful for debugging)
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 14:53:53 +0000 (15:53 +0100)]
Remove bogus extern declaration.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 10:28:55 +0000 (11:28 +0100)]
This patch adds a section to the documentation on the late binding
feature for PCI devices. It provides some examples (mostly stolen from
the e-mail which accompanied the late-binding patch) of how to use the
sysfs attributes for late binding.
This patch was revised from the last documentation patch that I
submitted which included this and some documentation on the permissive
flag. I've divided the two sections up and I'd like this one considered
for acceptance now while I revise the permissive flag code.
Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 09:16:05 +0000 (10:16 +0100)]
Touch softlockup watchdog while warning user about use of
tls libraries.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 09:07:31 +0000 (10:07 +0100)]
Fix whitespace in libxc. Tabs are manually fixed.
Trailing whitespace removed with:
perl -p -i -e 's/\s+$/\n/g' tools/libxc/*.[ch]
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 08:52:32 +0000 (09:52 +0100)]
Fix SETMAXMEM dom0_op with proper locking.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 08:47:55 +0000 (09:47 +0100)]
Currently, it is possible to set the mem-max value to value lower than
what has been currently allocated to the domain causing the kernel to
crash. This patch validates the value passed in and prevents setting the
value below the current allocation level.
Signed-off-by: ksrinivasan@novell.com
emellor@leeni.uk.xensource.com [Fri, 14 Apr 2006 20:22:09 +0000 (21:22 +0100)]
This patch enables external devices, such as for example a mounted hard
drive image or a TPM, to be migrated to a remote machine. The patch
hooks into the checkpointing (XendCheckpoint.py) code and performs
migration in 4 different steps:
In a 1st step (step = 0 in the code) migration of all devices of a
domain is 'tested', that means their driver implementations (blkif.py,
netif.py, tpmif.py, usbif.py, pciif.py) are queried whether migration is
possible at all. Currently all device representations respond with a
'yes' (=0), although probably a VM mounting a hard drive partition
should respond with a 'no' (-1) already. This first step is a quick
check to see whether devices can be migrated.
The 2nd step is to do whatever can be done before the domain is
suspended. At this point migration of the device could be initiated, if
at all possible.
The 3rd step is to migrate a device after the domain has been suspended,
meaning that it is not scheduled anymore and the VM is 'settled'. All
devices are called again and a good implementation would initiate the
migration in a background process to achieve as much concurrency as
possible.
The 4th step is to synchronize with the 3rd step. At this point the
implementor has to make sure that anything that was initiated in step 3
has completed. Once all steps 4 have been processed, the VM will resume
on the remove machine.
I have implemented hooks for migration of a virtual TPM in
xen/xend/server/tpmif.py. These hooks call a configurable external
migration tool using the os.popen() call with a fixed command line
parameter set. The implementation refuses to migrate a VM attached to a
virtual TPM if no tool has been provided for migration.
All other devices do not currently overload the 'migrate' method defined
in the DevController.py and therefore will just let migration happen.
I have added hooks for error recovery such that whatever part of
migration has been initiated can be rolled back when any of the devices
fail to migrate in one of the steps. The interface (in tpmif.py) to the
external application now uses os.popen() to allow error handling by
reading the application's output.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Ryan Harper [Fri, 14 Apr 2006 20:15:38 +0000 (21:15 +0100)]
Allow cpus parameter to xm create to accept a range string by removing the
restriction of cpus accepting only integers.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 14:05:28 +0000 (15:05 +0100)]
Restrict netfront to 256 grant references to avoid
exhausting the global pool.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 14:05:04 +0000 (15:05 +0100)]
Introduce gnttab_empty_grant_references() to check whether grant
references is empty.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 13:54:46 +0000 (14:54 +0100)]
Replace grant-table typedefs with explicit structs.
Reduce MAPTRACK_MAX_ENTRIES to something plausible.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 13:40:30 +0000 (14:40 +0100)]
Clean up grant_mapping_t. Increase its size from 4bytes to 8bytes and
removed tight encoding of flag and ref. This change is xen-internal
so this shouldn't affect domain api.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 13:37:19 +0000 (14:37 +0100)]
Use ioremap instead of __va to map VGA memory area (to be uncached).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 13:33:53 +0000 (14:33 +0100)]
This patch removes the ignored "Unconditional I/O exiting" setting in VMCS for
the vmx guest since "Use I/O bitmaps" setting is being used.
Signed-off-by: Himanshu Raj <rhim.list@nosuchaddr.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 13:31:27 +0000 (14:31 +0100)]
This patch enables tracing VMEXIT/ENTRY for 64-bit systems.
Signed-off-by: Himanshu Raj <rhim.list@nosuchaddr.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 13:23:40 +0000 (14:23 +0100)]
Since we don't reset the proto_csum_blank flag in the skb, the
checksum calculation gets done twice, which is not twice as good as
once.
With this patch, TCP/UDP checksum errors from dom0 are fixed, and
domUs can use TCP/UDP without turning off TX checksum offload. Normal
non-VLAN bridged configs still work fine, tested with xm-test.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 13:21:12 +0000 (14:21 +0100)]
This is a patch for XenMon which only applies to the userspace tools.
The primary purpose of this patch is to add support for non-polling
access to the xen trace buffers. The hypervisor changes have already
been accepted.
Also included are a few bug fixes and some minor new features:
1. If xenmon is run without first allocating trace buffers (via
'setsize') and enabling them (via 'tbctl'), then this is done
automatically using sensible defaults.
2. There was a bug that caused the first second's worth of data output
from xenmon to be erroneous; This has been fixed.
3. There was a bug that caused xenmon to sometimes not display data for
newly created domains; This has also been fixed.
4. The xenmon display has a 'heartbeat' which flickers once per second.
This is to show that xenmon is still alive, even though the display
isn't changing at all, a situation that can happen sometimes when there
is nothing at all happening on a particular cpu.
5. Added cpu utilization display to the top of the xenmon window.
6. Added a bunch of options in xenmon to control exactly which metrics
are displayed, so the screen doesn't get cluttered with stuff you're not
interested in. The new options are:
--allocated
--noallocated
--blocked
--noblocked
--waited
--nowaited
--excount
--noexcount
--iocount
--noiocount
7. Added an option ("--cpu=N") to xenmon to specify which physical cpu
you'd like data displayed for.
8. Updated the README with information about default trace buffer size, etc.
Signed-off-by: Rob Gardner <rob.gardner@hp.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 13:18:39 +0000 (14:18 +0100)]
Trivial patch to fix x86_64 builds in which XEN_TARGET_ARCH
is specified on the make command line, e.g.:
make XEN_TARGET_ARCH=x86_64
This busted the vmxassist and hvmloader builds, which must
be done -m32. Using "override" in the vmxassist/hvmloader
Makefiles fixes the problem by not allowing this to be
overridden from the command line.
Signed-off-by: Dave Lively <dlively@virtualiron.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 13:14:24 +0000 (14:14 +0100)]
New IO-APIC ACK method seems to cause problems on some systems
(e.g., Dell 1850). Disable it by default for now, but allow the
new mwethod to be tested by passing boot parameter 'new_ack'
to Xen.
You can tell which ACK method you are using because Xen prints
out "Using old ACK method" or "Using new ACK method" during boot.
This workaround can be removed if/when the problems with the new
ACK method are flushed out.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 11:01:15 +0000 (12:01 +0100)]
Fix Xen's interrupt acknowledgement routines on certain
(apparently broken) IO-APIC hardware:
1. Do not mask/unmask the IO-APIC pin during normal ISR
processing. This seems to have really bizarre side effects
on some chipsets.
2. Since we instead tickle the local APIC in the ->end
irq hook function, it *must* run on the CPU that
received the interrupt. Therefore we track which CPUs
need to do final acknowledgement and IPI them if
necessary to do so.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 10:58:49 +0000 (11:58 +0100)]
Call move_irq() during evtchn ->ack irq hook functions. This
triggers SMP affinity work.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 10:58:11 +0000 (11:58 +0100)]
Must use __copy_to_user_inatomic() in swiotlb's sync_single()
function, as we cannot sleep there.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 18:14:11 +0000 (19:14 +0100)]
Fix stack corruption in the libxs python interface. domid_t is a short;
instead use uint32_t like we do in xc.c.
Signed-off-by: John Levon <john.levon@sun.com>
vhanquez@kneesa.uk.xensource.com [Thu, 13 Apr 2006 16:21:13 +0000 (16:21 +0000)]
add quota to xenstored.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 14:15:56 +0000 (15:15 +0100)]
Allow PCI-E and PCMCIA config on 64-bit Xenlinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 10:26:01 +0000 (11:26 +0100)]
This is to align PIT counter with TSC more accurately.
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 10:25:03 +0000 (11:25 +0100)]
Use memmove instead of memcpy for overlapping areas (console scroll).
Use memset instead of memcpy to clear line.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 10:24:00 +0000 (11:24 +0100)]
In some cases, say for instance for some bizzare reason
the tree was checked out of CVS, which doens't neccessarily
store file permissions, mkbuildtree may not be executable.
So run them explicitly via bash.
Signed-Off-By: Horms <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 10:08:20 +0000 (11:08 +0100)]
SVM patch to add BP exception intercept support.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 10:07:28 +0000 (11:07 +0100)]
SVM patch to init rsp properly.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 10:06:43 +0000 (11:06 +0100)]
SVM patch to add PAE support.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 10:00:54 +0000 (11:00 +0100)]
SVM patch to add add init intercept handler.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 09:59:08 +0000 (10:59 +0100)]
This fixes the state machine of the vTPM driver.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 09:57:57 +0000 (10:57 +0100)]
Clean up xen Makefile. Use _-prefixed rules to avoid a
comparsion with XEN_ROOT variable.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 09:45:43 +0000 (10:45 +0100)]
This fixes the Xen Makefile to allow correct building of cscope, TAGS
and tags. Prior to this the asm directory was not constructed correctly
for the "find" command. "xen\cscope.*" has been added to ".hgignore".
Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil@unisys.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 09:41:53 +0000 (10:41 +0100)]
The comment in xen.h on how to obtain current system time was missing
a right shift by 32 bits.
Signed-Off-By: Bruce Rogers <brogers@novell.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 09:33:46 +0000 (10:33 +0100)]
The default value used to control whether the guest is set up with localtime
or utc in the RTC was wrong.
Signed-Off-By: Bruce Rogers <brogers@novell.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 09:31:53 +0000 (10:31 +0100)]
This is the initial patch for SMP PAE guest on x86-64 Xen.
For vcpus=2, the SMP PAE guest can do kernel build successfully.
And it improves the stability of SMP guests.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin xiaohui.xin@intel.com
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 09:29:27 +0000 (10:29 +0100)]
Make grant table map/unmap argument, host_addr, feature-specific.
Introduce gnttab_set_map_op() and gnttab_set_unmap_op() to initialize.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 09:12:16 +0000 (10:12 +0100)]
Unmap shadow vtable when freeing shadow table in free_shadow_pages().
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 09:10:19 +0000 (10:10 +0100)]
Use copy_from_user when accessing linear page table in shadow_fault().
This is safer, and direct access may crash hypervisor by some potential
bug. Also remove some tailing space.
Signed-off-by: Xin Li <xin.b.li@intel.com>
emellor@leeni.uk.xensource.com [Wed, 12 Apr 2006 17:53:38 +0000 (18:53 +0100)]
Reset the cached state to XenbusStateInitialising on resume -- we're connecting
to a new backend, so the state value needs to be reset.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 11 Apr 2006 11:51:48 +0000 (12:51 +0100)]
Merged.
emellor@leeni.uk.xensource.com [Tue, 11 Apr 2006 11:46:39 +0000 (12:46 +0100)]
Fix KERNELS example, mkinitrd example.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Apr 2006 09:44:07 +0000 (10:44 +0100)]
The maximum instruction length for both x86-32 and
x86-64 is 15 bytes (including all prefixes, opcode,
ModRM, SIB, displacement, and immediate bytes).
This patch adjusts the MAX_INST_LEN to the correct
value. This should reduce the size of some variables
in the hypervisor code. This patch also does some
minor code clean-up in the vm exit handler for VMX.
Signed-off-by: Khoa Huynh <khoa@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Apr 2006 09:41:08 +0000 (10:41 +0100)]
When running test 5 in Memtest86+ v1.65, I got a "this opcode is not
supported", so I decided to add it. It's a compare operation, and it's
just the opposite of the already supported one (opcode 0x39), so it's
nothing spectacular. Why there's a page-fault when this instruction gets
executed, I haven't got a clue, but I have a feeling that Memtest86 is
doing something wrong :-( However, this fix may help some other code to
run too...
With this, Test 5 passes all the way through without crashing. I did see
some occassional memory errors in some other tests, and I'm not 100%
sure whether those are caused by the system or they are "real" memory
errors. At some time in the future I may get round to memory testing my
target system...
Signed off by: Mats Petersson (mats.petersson@amd.com).=20
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Apr 2006 09:40:03 +0000 (10:40 +0100)]
Make event_pending() architecture-specific.
PowerPC needs this because the domain can directly modify the hardware's
"interrupts enabled" bit, and we don't want to patch Linux to replace
all those accesses to use evtchn_upcall_mask instead.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Apr 2006 08:58:04 +0000 (09:58 +0100)]
Remove some bogus .PHONY Makefile declarations.
Fixes xentop installation.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 17:56:34 +0000 (18:56 +0100)]
Netfront must switch state using xenbus_switch_state() or this
is not picked up by the waiting code in xenbus_probe.c.
Also clean up the waiting code a little.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 17:30:07 +0000 (18:30 +0100)]
Add a new config option for all backend drivers. This has two benefits:
1. All backend drivers can be disabled or modularised via
one config option.
2. Backend helper routines that are not specific to any particular driver
can be disabled or modularised based on this config option. In
particular this may allow backend drivers plus the service module
to be upgraded separate from the kernel core as and when the backend
interfaces change (and they will).
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 17:18:03 +0000 (18:18 +0100)]
Merged.
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 17:17:54 +0000 (18:17 +0100)]
Fix the test inside all_devices_ready, and move it from xenbus_probe (a
postcore_initcall) to a new late_initcall, so that it happens after the
drivers have initialised.
Fixes the reopened bug #549 (I hope).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:32:30 +0000 (17:32 +0100)]
Fail the build if NR_hypercalls is not a power of two.
Making this requirement clearer originally suggested by
Muli Ben Yehuda.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:28:02 +0000 (17:28 +0100)]
Fix a couple of typos.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:25:42 +0000 (17:25 +0100)]
Fix push/pop usage in tools/ioemu for x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:16:25 +0000 (17:16 +0100)]
If the 'cdrom=' option is specified in the definition file but media is
not found in the CD drive then main() in vl.c exits and the guest appears
to hang. This patch modifies vl.c slightly to check for the presents of
media. If the cdrom cannot be opened then the cd entry is removed from
hd_filename[] and bs_table[] allowing the guest to continue initializing.
If the guest requires the CD media then the guest should report, gracefully
or otherwise, that it's missing.
From: Ross Maxfield <rmaxfiel@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:02:49 +0000 (17:02 +0100)]
build: Clean up use of .PHONY
* Move .PHONY directives next to targets,
this makes them a lot harder to miss
* Add missing .PHONY directives
* Remove nonexistent .PHONY directives
* Hopefully I didn'T miss anything...
Signed-Off-By: Horms <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:36:38 +0000 (16:36 +0100)]
build: Clean pygrub's a.out
Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Horms <horms@valinux.co.jp>
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 15:36:03 +0000 (16:36 +0100)]
Merged.
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:35:30 +0000 (16:35 +0100)]
build: Document the use of XEN_PYTHON_NATIVE_INSTALL
Document the use of the XEN_PYTHON_NATIVE_INSTALL environment variable
Signed-Off-By: Horms <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:34:59 +0000 (16:34 +0100)]
build: clean up output of make help a little bit
Signed-Off-By: Horms <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:31:53 +0000 (16:31 +0100)]
build: Make sure that DESTDIR is set
In the case where XEN_PYTHON_NATIVE_INSTALL is in effect,
if DESTDIR is not set then the install will go into a relative
directory rather than under the default prefix (usually /usr).
An alternate solution would be to update the fragments
that do the python install to use $(DESTDIR)/ instead of
$(DESTDIR). This is not an incredible burden as there
are only two such fragments in the tree. However, it
seems prone to error as new makefiles are created
in the future.
Signed-Off-By: Horms <horms@verge.net.au>
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 15:28:52 +0000 (16:28 +0100)]
Initialise offsetopt when offset == 0. Closes bug #599.
Report and diagnosis by Robert Hendrickx <robert.hendrickx@advalvas.be>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:27:46 +0000 (16:27 +0100)]
build: Remove iptables and python loging helper targets
These targets don't really fit into the build infastructure,
for instance there is no faclilty for them to be removed
on make distclean. I posted a patch that fleshed out the targets,
but Christian Limpach suggested to me that removing them
would be a better idea.
Signed-Off-By: Horms <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:26:52 +0000 (16:26 +0100)]
Remove unused netbsd build fragments.
Signed-Off-By: Homrs <horms@verge.net.au>
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 15:26:23 +0000 (16:26 +0100)]
Fix call to server, using new XendClient syntax.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 15:21:44 +0000 (16:21 +0100)]
Updated to reflect new KERNELS defaults, and properly describe make install and
make dist.
vhanquez@kneesa.uk.xensource.com [Mon, 10 Apr 2006 14:51:10 +0000 (14:51 +0000)]
fix bug #609 - error: PIC register `bx' clobbered in `asm'
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 13:47:51 +0000 (14:47 +0100)]
I used the wrong operator in a couple places for putting together some
error messages out of format strings. This patch corrects those
operators and fixes the strings.
Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 12:24:58 +0000 (13:24 +0100)]
'make mkpatches' diffs against pristine tree rather than
ref tree, so it includes extra patches under patches/ subdirectory.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 10:39:32 +0000 (11:39 +0100)]
Introduce page_to_bus() and use it in pci-dma-xen.c and swiotlb.c. On
xen/ia64 with the P2M/VP model pseudo physical address(gpaddr) is
fully virtualized so it defines
xen_features(XENFEAT_auto_translated_physmap) = 1. In this case
page_to_phys(page) should return pseudo physical address like
pfn_to_mfn() and its families. However dma is not virtualized, it
can't be used for pci-dma-xen.c, swiotlb.c.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
ack@kneesa.uk.xensource.com [Mon, 10 Apr 2006 09:57:38 +0000 (10:57 +0100)]
fix x86_32 default linux builds
kaf24@firebug.cl.cam.ac.uk [Sun, 9 Apr 2006 17:23:16 +0000 (18:23 +0100)]
Remove various compile-time options from SEDF scheduler and
clean up formatting.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Apr 2006 11:10:04 +0000 (12:10 +0100)]
Build CONFIG_PNP_ACPI by default.
Signed-off-by: Keir Fraser <keir@xensource.com>